package com.example.config.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @Author: 杨雄杰
 * @Date: 2021/5/26 3:35 下午
 */

@RefreshScope
@Component
public class RefreshValue {

    @Value("${app.refreshTime}")
    private String refreshTime;

    public String getRefreshTime() {
        return refreshTime;
    }
}
